home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
HENSA
/
MISC
/
SHELL.ARC
/
Shell
/
Sources
/
c
/
Poll
< prev
next >
Wrap
Text File
|
1994-11-10
|
571b
|
29 lines
#include <time.h>
#include "DeskLib:Event.h"
#include "Shell.Shell.h"
/* these are used in the macro Shell_PollSlow(), defined in 'Shell.Shell.h' */
clock_t Shell_nextpolltime = 0;
clock_t Shell_pollinterval = 0;
BOOL Shell_paused = FALSE;
void Shell_Poll( void)
{
/* This polls the wimp until a null event is received */
event_pollmask oldmask = event_mask;
do {
event_mask.data.null = 0; /* make sure null events are returned */
Event_Poll();
}
while ( event_lastevent.type != event_NULL || Shell_paused);
event_mask = oldmask; /* Restore old mask. */
}